package com.creative.accountsdk.net.account;

import android.util.Log;

import com.creative.accountsdk.UmsChannel;
import com.creative.accountsdk.UserData;
import com.creative.accountsdk.bean.ClassInfo;
import com.creative.accountsdk.bean.StudentInfo;
import com.creative.accountsdk.net.Protocol;
import com.creative.accountsdk.net.XParams;
import com.loopj.android.http.RequestParams;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * 修改学生备注名
 *
 *
 * @author  David
 * @version 1.0
 * @created 2015-11-25
 */
public class UpdateStuAliasProtocol extends Protocol {

    public JSONObject           returnMap;

    UserData  userData;
    long    kuid;
    String  alias;

    public UpdateStuAliasProtocol(long kuid,String  alias){
        userData = UserData.getInstance();
        this.kuid = kuid;
        this.alias = alias;
    }
    @Override
    public RequestParams getParams() {
        return new XParams()
                .put("uid", userData.getUid())
                .put("kuid",kuid)
                .put("alias",alias)
                .put(UmsChannel.PARAM_NAME, UmsChannel.getChannel())
                .getParams();
    }

    @Override
    public String getUrl() {
        return getUrlPrefix()+"class/s/alias";
    }

    @Override
    protected void parseReturnMap(JSONObject returnMap) {
        this.returnMap = returnMap;
            Log.e("Tag", "返回的班级详情信息.." + returnMap.toString());

    }

}
